import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

// 引入全局uView
import uView from '@/libs/uview-ui';
Vue.use(uView);
// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js');
Vue.mixin(vuexStore);

// 引入uView对小程序分享的mixin封装
let mpShare = require('@/libs/uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare);


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})


// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/utils/http.interceptor.js';
Vue.use(httpInterceptor, app);

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif